package com.iwhalecloud.bss.kite.cucc.client.api.oss;

import com.aliyun.oss.model.OSSObjectSummary;
import com.iwhalecloud.bss.kite.cucc.client.vo.order.AliyunOssResultVO;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;

public interface IAliyunOssService {

    AliyunOssResultVO upload(InputStream inputStream, String objectName);

    List<OSSObjectSummary> listOSSObjectSummary();

    void delete(String objectName);

    void delete(List<String> objectNames);

    String getUrl(String objectName, long effectiveTime);

    void exportOssFileStream(OutputStream os, String objectName)throws IOException;

    InputStream exportOssFileStream(String objectName) throws IOException;
}
